package com.xxx.shiro.service.impl;

import com.xxx.shiro.dao.CachePermissionDao;
import com.xxx.shiro.entity.CachePermission;
import com.xxx.shiro.service.CachePermissionService;

/**
 * <p>User: Zhang Kaitao
 * <p>Date: 14-1-28
 * <p>Version: 1.0
 */
public class CachePermissionServiceImpl implements CachePermissionService {

    private CachePermissionDao permissionDao;

    public void setPermissionDao(CachePermissionDao permissionDao) {
        this.permissionDao = permissionDao;
    }

    public CachePermission createPermission(CachePermission permission) {
        return permissionDao.createPermission(permission);
    }

    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }
}
